/**
 * 
 */
package com.eis.thirdsys.connector.datatype.datahandler;

/**
 * @author sh-panwei01
 *
 */
public class DataHandleUtil {
	public static Object handleData(Class<? extends DataHandler> handlerClass, Object data) throws InstantiationException, IllegalAccessException {
		if (handlerClass != null) {
			DataHandler handler = handlerClass.newInstance();
			
			return handler.handleData(data);
		} else {
			return data;
		}
	}
}
